﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace зверь
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        Point coord;   
        Graphics g;      
        Bitmap B1;      
        Bitmap B2;      
        Int32 cadr = 1; 
        
        private void Form1_Load(object sender, EventArgs e)
        {

            B1 = new Bitmap("C:\\Users\\Nastya\\Documents\\Visual Studio 2010\\Projects\\зверь\\animal01.png");
            B2 = new Bitmap("C:\\Users\\Nastya\\Documents\\Visual Studio 2010\\Projects\\зверь\\animal02.png");
            coord = new Point(200, 200);      
            g = pictureBox1.CreateGraphics(); 
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            g.Clear(Color.White); 
            if (cadr == 1) 
            {
                g.DrawImage(B1, coord); 
                cadr = 2; 
            }
            else if (cadr == 2) 
            {
                
                B2.RotateFlip(RotateFlipType.RotateNoneFlipX);
                g.DrawImage(B2, coord);
                cadr = 1;
            }
        }

    }
}
